<?php
//optaining menu from menu controller
$menu = Hash::nest($this->requestAction('menus/menu'));
?>


<div class="navbar">  
    <div class="container">          
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target=".nav-responsive-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
        </button> 
        <div class="nav-collapse nav-responsive-collapse collapse">
            <?php
// command to generate menu
            echo $this->Tree->generate($menu, array('element' => 'node', 'model' => 'Menu', 'class' => 'nav navbar-nav'));
            echo $this->element('../languages/show');
            ?>

        </div>
    </div>
</div>




